<?php
/**
 * Model Traits Permssion
 * User: zng
 * Date: 2019/11/15
 * Time: 15:08
 */
namespace app\admin\traits\model;

Trait Admin {

    public function role()
    {
        return $this->belongsToMany('Role', '\\app\\admin\\model\\admin\\AdminRole', 'role_id', 'admin_id');
    }

}